package com.yuda.campsite.dto;

import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 为生成邀请码 的前置准备工作
 */
public class SimpleInvCodeForGen {

    @NotBlank
    private String name;

    @NotNull
    @DecimalMin("0")
    private BigDecimal reduction;

    @Min(value = 1, message = "最小为1")
    @Max(value = 10000, message = "最大为10000")
    private Integer num;

    @NotNull
    private Integer campsiteId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getReduction() {
        return reduction;
    }

    public void setReduction(BigDecimal reduction) {
        this.reduction = reduction;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getCampsiteId() {
        return campsiteId;
    }

    public void setCampsiteId(Integer campsiteId) {
        this.campsiteId = campsiteId;
    }
}
